﻿module		core.fontconst;

const VALUE_FIX	=1;

const HZ_HIGH_MAX 	=87 + VALUE_FIX;	// 0xA1～0xF7	汉字编码范围高位(+1是给普通字母与标点符号留位置)
const HZ_LOW_MAX	=95	;				// 0xA0～0xFE	汉字编码范围底位

const HZ_HIGH_FIX 	=0xA1;
const HZ_LOW_FIX	=0xA0;
const HZ_HIGH_END	=0xF7;
const HZ_LOW_END	=0xFE;

const ASCII_FIX	=0x20;
const ASCII_END	=0x7f;
const ASCII_WIDTH	=6;



const MAX_PATH          	=260;
const HGETEXT_LEFT			=0;
const HGETEXT_RIGHT		=1;
const HGETEXT_CENTER		=2;
const HGETEXT_HORZMASK		=0x03;

const HGETEXT_TOP			=0;
const HGETEXT_BOTTOM		=4;
const HGETEXT_MIDDLE		=8;
const HGETEXT_VERTMASK		=0x0C;

const FONT_MAP_WIDTH       =128;    //全部字符纹理的宽度
const FONT_MAP_HEIGHT      =128;    //高度

int		char_width;		//字符宽度

// 汉字字体数据
struct st_FontCN_Body {
    wchar hz;
    ushort tx;
    ushort ty;
}
